package com.example.scaffold.common.bean;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import lombok.Data;

@Data
public class PageQueryParam {
    @Min(value = 1, message = "页码不能小于1")
    private int pageNum = 1;
    
    @Min(value = 1, message = "每页条数不能小于1")
    @Max(value = 100, message = "每页条数不能大于100")
    private int pageSize = 10;
}
